import request from '@/utils/request';


const modulesFiles = require.context('./modules', true, /\.js$/);


const apis = modulesFiles.keys().reduce((apis, path) => {
	const name = path.replace(/^\.\/(.*)\.\w+$/, '$1')
	apis[name] = modulesFiles(path).default;
	return apis;
} ,{}) 

export  default apis;

  